package com.scu.phototabuser.ui.navitems;

import android.app.DialogFragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.scu.phototabuser.R;

/**
 * Created by tianfei on 2017/5/10.
 */

public class AboutUs extends DialogFragment {

    public static AboutUs newInstance(){
        AboutUs adf = new AboutUs();
//        Bundle bundle = new Bundle();
//        bundle.putString("title", title);
//        adf.setArguments(bundle);
        return adf;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setCancelable(true);
//        getDialog().setTitle(getString(R.string.about_us));
        setStyle(DialogFragment.STYLE_NO_TITLE,0);
    }


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v=inflater.inflate(R.layout.about_us,container,false);
        //getDialog().setTitle(getString(R.string.about_us));
        return v;
    }
}
